#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
//int sentence(int x, int y)
//{
//	return((-8 + 22) * x - 10 + y / 2);
//}
int main()
{
	int a = 40;
	int c = 212;
	int result = (-8 + 22) * a - 10 + c / 2;
	printf("%d", result);

	return 0;
	/*int a = 0;
	int c = 0;
	scanf("%d %d",&a,&c);
	int result = sentence(a, c);
	printf("%d", result);
	return 0;*/
}